package com.archive.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 教师个人信息管理
 * </p>
 *
 * @author Janus
 * @since 2024-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_teacher_info")
@ApiModel(value="TeacherInfo对象", description="教师个人信息管理")
public class TeacherInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "类型 1：教研；2：科研")
//    private Integer type;

    @ApiModelProperty(value = "教师工号")
    private String code;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    @ApiModelProperty(value = "出生年月")
    @JsonFormat(pattern = "yyyy-MM")
    private LocalDateTime birth;

    @ApiModelProperty(value = "政治面貌")
    private String political;

    @ApiModelProperty(value = "学位")
    private String degree;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "教职工类别")
    private String category;

    @ApiModelProperty(value = "职称")
    private String title;

    @ApiModelProperty(value = "学院")
    private String college;

    @ApiModelProperty(value = "系部")
    private String department;

    @ApiModelProperty(value = "专业")
    private String speciality;

    @ApiModelProperty(value = "入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime entryTime;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "审核状态 0：未提交；1：待审核；2：审核通过；3：驳回")
    private Integer checkStatus;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}
